package com.changgou.pay.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Author LQQ
 * @Date 2020/3/15 22:30
 * @Version 1.0
 */

@Configuration//声明是个配置类
public class RabbitMQConfig {

    public static final String ORDER_PAY="order_pay";


        //定义队列

    @Bean//声明队列
    public Queue queue(){
        return new Queue(ORDER_PAY);
    }
}
